-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix performance issue when displaying concept mapping properties #846
Conversation
d5f0c6c
to
3eaf944
Compare
Rebased onto master and fixed conflicts. Hopefully Travis-CI will be still OK with the change 👍 |
Travis tests were failing like this:
It seems that ConceptMappingPropertyValueTest just has to be updated to match what the code does. |
Tested this locally. Some observations:
|
I think that's enough review for this PR for now! Great work, it's advancing well though some things need to be fixed before this can be merged. |
3eaf944
to
a8bf375
Compare
Rebased, updated, and tests passing now. Good feedback on the Ajax responses! Hadn't looked at different ways the concept page could be used. Might be the case that the JavaScript used just needs to be loaded somewhere else. Will test it during this (very rainy so far) weekend. Thanks! |
Fixed in 5d75ca9. Interesting, I thought the whole page was being loaded when you clicked on the hierarchy node. Found where that magic takes place in Then later realized had to do the same for Concept, Hierarchy, and Groups. Should be working now. |
That's weird. Not sure what I changed that caused this regression. But I had a look at Finto, and the hover notes also appear always in English I think? https://finto.fi/yso/en/page/?clang=fi&uri=p13015 Or is it something else that needs to appear in Finnish instead of English. I mean the text EXACTLY MATCHING CONCEPTS and also what appears when I hover the mouse over that text. |
5064253
to
5d75ca9
Compare
Oh, I see what you mean. Went to YSO groups, and clicked on 02. Philosophy and saw that spinner working its way, and then leaving the empty grey bar. In the beginning, the component is hidden, and then it is displayed and a spinner starts so that the user can see there's something going on. Then the next step was to populate the elements. Except when a concept had If no properties were returned, then the spinner is removed, and the element is hidden again. Only issue I see with this approach is that for a few seconds there will be a grey area, with the spinner. Is that a problem @osma ? I'm not sure if there's another way to fix this... as we don't access the properties mapping directly from the |
Whew, addressed the points from the feedback I think. Waiting for Travis CI now, but if no issues found there, it should be ready for review again 🎉 |
6bf1852
to
e32f82c
Compare
Rebased 👍 |
e32f82c
to
d58b46e
Compare
Sorry @kinow, this has been waiting for another review way too long. I fixed a minor merge conflict in The AJAX style loading and extra grey bar issues are now solved, great! There are still some issues with language support.
I discussed the second problem with @kouralex and we came to the conclusion that it would be better to include all the possible property labels (and help texts / descriptions) in the |
Hi @osma ! Thanks for fixing the merge conflicts.
Makes sense to me. Without looking at the code, I think we already have access to the vocabulary & its configuration and related objects. So it should be easily available somewhere I think 🤞
Sounds like a good workaround. Probably not likely to increase the number of property labels, so that should do. |
Let me know you are planning on updating the PR with the workaround. Otherwise I can give it a try in the next days/weeks. |
I fixed the first issue, it was a very simple fix (use For the second one, I'd appreciate if you could take a look @kinow and update the PR. We're planning a Skosmos 2.2 release (finally!), ideally this week, not sure if this can make it though. |
… have been loaded
…it can be called from RestController too
…ax (hierarchy click)
…perties were returned
…ault $propertyLang for the jskos response
6255be5
to
bbd9876
Compare
Hi @osma Oh, sorry about that. I should have done a better testing. Implemented your suggestion and I think it's working correctly. I tested using the Finto installation, using English as interface language and content. Then switching content language to Finnish. Then switched the interface language to Finnish, and finally switched content from Finnish to English. I had similar output in both — the difference was mainly some words/links were different, but I suspect that's just old data (e.g. instead of "Library of Congress Subject Headings", my YSO has "id.loc.gov"). PR rebased as well. Do you mind having another go at testing it, please? Thanks! |
…t makes sense to distinguish between "UI" language (property labels etc) and content language
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Thanks @kinow! Much better now. |
There were some back-and-forth changes recently as we considered adding a The new situation is different, as we genuinely need both |
Merged, thanks a lot @kinow! Now we have to see how this affects the plugins/widgets and if we need to adjust the callback mechanisms in some cases. For example the Wikipedia widget used on YSO Places needs the graph of triples from Wikidata, which now arrives later than it used to. |
Whoa, the Wikipedia widget seems to work, so you got the callbacks right too! Excellent! |
Call concept mapping endpoint via Ajax to populate the page instead of using PHP to create greedily the complete page content.